package com.docker.apps.afterservice.ui;

import android.arch.lifecycle.ViewModelProviders;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.alibaba.android.arouter.launcher.ARouter;
import com.docker.apps.R;
import com.docker.apps.databinding.ProChangeOrderActivityBinding;
import com.docker.apps.order.vm.OrderAddressViewModel;
import com.docker.apps.order.vo.OrderVoV2;
import com.docker.common.common.router.AppRouter;
import com.docker.common.common.ui.base.NitCommonActivity;

/**
 * kxf -> 2020-02-18
 **/
@Route(path = AppRouter.ORDER_CHANGE)
public class OrderChangeInfoActivity extends NitCommonActivity<OrderAddressViewModel, ProChangeOrderActivityBinding> {

    @Override
    public void initView() {
        mToolbar.setTitle("修改订单");

        OrderVoV2 orderVoV2 = (OrderVoV2) getIntent().getSerializableExtra("order");

        mBinding.changeT5.setOnClickListener(v -> {

            String name = mBinding.changeT1.getText().toString();
            String tel = mBinding.changeT2.getText().toString();
            String address = mBinding.changeT4.getText().toString();

        });

        mBinding.changeT3.setOnClickListener(v -> {

        });

    }

    @Override
    public void initObserver() {


    }

    @Override
    public void initRouter() {
        ARouter.getInstance().inject(this);
    }

    @Override
    protected int getLayoutId() {
        return R.layout.pro_change_order_activity;
    }

    @Override
    public OrderAddressViewModel getmViewModel() {
        return ViewModelProviders.of(this, factory).get(OrderAddressViewModel.class);
    }


}